<!Doctype html>
<html xmlns:th="http://www.thymeleaf.org" lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <script th:src="@{/jquery-1.11.3.min.js}"></script>
    <link th:href="@{/bootstrap-4.5.0-dist/css/bootstrap.css}" rel="stylesheet">
    <script th:src="@{/jquery/jqPaginator.js}"></script>
</head>

<body>
    <div class="container">
        <h3 class="text-center">考勤表</h3><br>
        <a class="btn btn-success" th:href="@{/ac/goadd}">考勤</a>
        <table class="table">
            <tr><th>员工编号</th>
                <th>员工名字</th>
                <th>性别</th>
                <th>电话</th>
                <th>员工状态</th>
                <th>原因</th>
                <th>年</th>
                <th>月</th>
                <th>日</th>
            </tr>

            <tr th:each="one:${checks}">
                <td th:text="${one.id}" ></td>
                <td th:text="${one.name}"></td>
                <td th:text="${one.sex}"></td>
                <td th:text="${one.phone}"></td>
                <td th:text="${one.checkstate}"></td>
                <td th:text="${one.reason}"></td>
                <td th:text="${one.checkyear}"></td>
                <td th:text="${one.checkmounth}"></td>
                <td th:text="${one.checkday}"></td>
            </tr>
            <tr>
            <!--<td colspan="8">
                <div class="page">
                    <p>当前<span th:text="${checks.getNumber()} + 1"></span>页,总<span th:text="${checks.totalPages}"></span>页
                        共<span th:text="${checks.totalElements}"></span>条记录
                        <a th:href="@{/ac/checkall}">首页</a>
                        <a th:href="@{/ac/checkall(pageNum = ${checks.hasPrevious()} ? ${checks.getNumber() } : 1)}">上一页</a>
                        <a th:href="@{/ac/checkall(pageNum = ${checks.hasNext()} ? ${checks.getNumber()} + 2 : ${checks.totalPages})}">下一页</a>
                        <a th:href="@{/ac/checkall(pageNum = ${checks.totalPages})}">尾页</a></p>
                </div>

            </td>-->
        </table>
    </div>
</body>
</html>